const mongoose = require('mongoose');
const schedulesScheme = new mongoose.Schema({
    movieId: {
        type: mongoose.Schema.Types.ObjectId,
        ref: "movies"
    },
    cinemasId: {
        type: mongoose.Schema.Types.ObjectId,
        ref: "cinemas"
    },
    theaterId: {
        type: mongoose.Schema.Types.ObjectId,
        ref: "theaters"
    },
    showTime: String,
    showDate: String,
    price: String,
 
});
mongoose.model("schedules", schedulesScheme, "schedules");